package com.css.fxfzdpzs.modules.jcsj.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class HistoricalEarthquake {
    //主键
    private String id;
    //省
    private String province;
    //市
    private String city;
    //区
    private String county;
    //震级
    private Double magnitude;
    //经度
    private Double lon;
    //纬度
    private Double lat;
    //深度
    private Double depth;
    //发震时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
}
